import { CustomEnum } from "@/enums";

export const UserTypeEnum = {
  DECORATION_COMPANY: { label: "装修公司", value: "MC02" },
  HOME_BUILDING_MATERIALS: { label: "家居建材", value: "MC03" },
  DESIGNER: { label: "设计师", value: "ME01" },
  PRACTITIONER: { label: "公司职员", value: "MC00" },
  PROJECT_MANAGER: { label: "项目经理", value: "ME02" },
};

export const UserTypeName = {
  MC02: "装修公司",
  MC03: "家居建材",
  ME01: "设计师",
  MC00: "公司职员",
  ME02: "项目经理",
};

export const GenderEnum: CustomEnum<number> = {
  MALE: { label: "男", value: 1 },
  FEMALE: { label: "女", value: 2 },
  SECRET: { label: "保密", value: 0 },
};

export const UserStatusEnum: CustomEnum<number> = {
  ENABLED: { label: "启用", value: 1 },
  DISABLED: { label: "禁用", value: 0 },
};

/**
 * 通讯录类型
 * @type {{DESIGNER: {label: string, value: number}, PROJECT_MANAGER: {label: string, value: number}, MATERIAL_SUPPLIER: {label: string, value: number}, WORKER: {label: string, value: number}}}
 */
export const CONTACT_TYPE: CustomEnum<number> = {
  DESIGNER: { label: "设计师", value: 1 },
  PROJECT_MANAGER: { label: "项目经理", value: 2 },
  MATERIAL_SUPPLIER: { label: "建材商", value: 3 },
  WORKER: { label: "工人", value: 0 },
};
